package com.webmall.servlet.cate;
/**
 * 用于分类的查询
 * 在管理员登录之后 选择分类管理
 */

import com.webmall.entity.CateEntity;
import com.webmall.service.webmall_CateDao;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;

@WebServlet("/manageHtml/admin_CateSelect")
public class CateSelect extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        ArrayList<CateEntity> cateList = webmall_CateDao.selectAll();
        request.setAttribute("catelist",cateList);
        request.getRequestDispatcher("/manageHtml/admin_cate.jsp").forward(request,response);


    }
}
